﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JX.Infrastructure.AliyunOSS
{
	/// <summary>
	/// 阿里云OSS配置，在appsettings.json文件中
	/// </summary>
	public class AliyunOssConfig
	{
		/// <summary>
		/// 是否启用OSS
		/// </summary>
		public bool EnableOSS { get; set; } = false;
		/// <summary>
		/// AccessKeyId
		/// </summary>
		public string AccessKeyId { get; set; } = string.Empty;
		/// <summary>
		/// AccessKeySecret
		/// </summary>
		public string AccessKeySecret { get; set; } = string.Empty;
		/// <summary>
		/// 地域节点网址
		/// </summary>
		public string Endpoint { get; set; } = string.Empty;
		/// <summary>
		/// 存储空间名称
		/// </summary>
		public string BucketName { get; set; } = string.Empty;
		/// <summary>
		/// Bucket域名网址
		/// </summary>
		public string BucketEndpoint { get; set; } = string.Empty;
	}
}
